package com.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 采购申请表
 */
@Data
@TableName("t_procure_apply")
public class ProcureApplyEntity implements Serializable {


    @TableId(value = "pk_id", type = IdType.AUTO)
    private long procureId;

    @TableField("a_applyRef")
    private String applyRef;//采购申请编号

    @TableField("a_dateTime")
    private LocalDateTime dateTime = LocalDateTime.now();//采购申请时间

    @TableField("a_reason")
    private String reason;//采购原因

    @TableField("a_cause")
    private String cause;//审核未通过原因

    @TableField("a_status")
    private int status = 0;//审核状态 0--待审核  1---审核通过 2 ----审核不通过

    @TableField("a_verifyName")
    private String verifyName;//审核人

    @TableField("a_verifyTime")
    private LocalDateTime verifyTime = LocalDateTime.now();//审核时间

    @TableField(exist = false)
    private List<ApplyInfoEntity> applyInfoEntityList;//订单的所有商品

    @TableField(exist = false)
    private BiddEntity biddEntity;//采购申请对应的招标书

}
